<?php

// Render Twig template in route
$app->get('/home/strategy', function ($request, $response, $args) {
    return $this->view->render($response, 'strategies.html');
});
$app->get('/home/channel', function ($request, $response, $args) {
    return $this->view->render($response, 'channel.html');
});
$app->get('/home/example', function ($request, $response, $args) {
    return $this->view->render($response, 'cases.html');
});
$app->get('/home/about', function ($request, $response, $args) {
    return $this->view->render($response, 'about.html');
});

$app->get('/', function ($request, $response, $args) {
    return $this->view->render($response, 'index.html');
});

$app->get('/qrcode/qrcode2', function ($request, $response, $args) {
    return $this->view->render($response, 'index.html');
});